/**
 * Created by 55456 on 2016/5/15.
 */
var cache = require("./cache");
module.exports = {
    user:(req) => {
        var token = req.body.token;
        //var token = req.cokkies["token"];
        //diff
        return cache.get(token);
    },
    login: (token,user) => {
        cache.set(token,user);
    }
};